<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>js导入导出</title>
</head>



<body>
    <div id="app">
        <button id="btn">点我展示信息</button>
    </div>
	
    <script type="module">
        //import  {complexMessage} from  './showMessage.js';

        import  messageMethods from  './showMessage.js';
        document.getElementById("btn").onclick=function(){
            //complexMessage('我被点击了...');
            messageMethods.complexMessage('我还是被点击了...')
        }

        let msg="hello vue3";
        document.getElementById("元素的id属性值").innerHTML=msg;
    </script>
    
</body>

</html>